Skip to content

Fix segment status sorting in table UI#18609

Merged
yashmayya merged 1 commit into
apache:masterfrom
wolfkill:fix/segment-status-sort
Jun 1, 2026
Merged

Fix segment status sorting in table UI#18609
yashmayya merged 1 commit into
apache:masterfrom
wolfkill:fix/segment-status-sort

Conversation

@wolfkill
Copy link
Copy Markdown
Contributor

Summary

  • unwrap rendered table cell values when sorting Status columns
  • avoid mutating table state in place for static sort functions

Why

The Segments table renders status cells as objects with a display value and a custom renderer. Lodash sorting on the object itself keeps the visible status order unchanged.

Fixes #14570.

Tests

  • npm run build-dev
  • npm run build
  • git diff --check
  • verified object-backed Status rows sort ascending and descending by their value

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.37%. Comparing base (9f8eb1a) to head (4c08a66).
⚠️ Report is 23 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18609      +/-   ##
============================================
- Coverage     64.37%   64.37%   -0.01%     
  Complexity     1137     1137              
============================================
  Files          3335     3335              
  Lines        206065   206065              
  Branches      32136    32136              
============================================
- Hits         132649   132645       -4     
- Misses        62760    62769       +9     
+ Partials      10656    10651       -5     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-21 64.37% <ø> (-0.01%) ⬇️
temurin 64.37% <ø> (-0.01%) ⬇️
unittests 64.36% <ø> (-0.01%) ⬇️
unittests1 56.78% <ø> (+0.01%) ⬆️
unittests2 36.92% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@yashmayya yashmayya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yashmayya yashmayya added bug Something is not working as expected ui UI related issue labels Jun 1, 2026
@yashmayya yashmayya merged commit 30b3b31 into apache:master Jun 1, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is not working as expected ui UI related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Sorting on the segments status is not working

3 participants